import 'package:base_plugin/base_plugin.dart';
import 'package:flutter/material.dart';
import 'package:dio/dio.dart';

class BasePresenter extends PresenterBase {
  @override
  int get cacheStatus => 999999;

  @override
  String get dataKey => 'data';

  @override
  Future<bool> handlerGlobalHttpError(
      BuildContext context, DioError error) async {
    return false;
  }

  @override
  String get msgKey => 'msg';

  @override
  int get normalStatus => 1;

  @override
  String get statusKey => 'code';

  @override
  bool get ignoreStatus => false;
}
